import { sequelize } from "./sequelize.js";
import '../../models/bookDb.js'

export function sync() {
    sequelize.authenticate().then(() => {
        console.log('连接成功')
        sequelize.sync().then(() => {
            console.log('同步成功')
        }).catch(err => console.log('同步失败',err))
    }).catch(err => console.log('连接失败',err))
}